package com.hqd.base.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hqd.base.client.model.entity.BaseGroup;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author su
 * @since 2020-01-02
 */
public interface BaseGroupService extends IService<BaseGroup> {

    List<BaseGroup> getGroupsByParentId(Integer parentId);
    void getDepartAndSubDepart(Integer groupId, List<Integer> list);
    List<Long> getAllUsersWithDepartAndSubDepart(Integer groupId);
    void insertSelective(BaseGroup entity);
    void updateBy(BaseGroup entity);
    BaseGroup queryGroupByUserIdAndGroupType( int paramInt1,  int paramInt2);
    void modifyGroupUsers(int groupId, String members, String leaders);
}
